Fixed logical error in line processing.