line_num++ fixed.