fix next_line