bug fix in get_next_line - wrong if statement