fixed error line number issue