Fix updating of line keys