Fix bug on get_next_line() found while testing