fixed error line reporting
bug fix