bug fix get_next_line