next_line bug hunting