Fixed deleteLine bug