Fixed an error in format_line(line)