fix bad first line processing