Fixed bug when generating error for blank line