fixed error codes #941