Properly reduce in onFailure