Remove extra lines