Update so that deleting last line works