fixed error result codes