Fix for rejected requests never resetting pending state