Fix UWS result handling bug