Fix conditional in request state function.