Hide dashed 8va and loco lines?

I have a problem with tied notes showing the line for the duration of both, when with tied notes only the first one needs the 8va.