fixed error tracking