Remove emply and dotted lines