remove suspicious "end"