fix wait operation in fog