fixed error codes error