Removing extra horizontal lines