fix line-number errors for syntax issues