Fixed UpdateFlowSpace bug