Delete some end lines