fix overlapping line issues