If you introduce sleep (either sleep or uiSleep) into uiNamespace or parsing Namespace or profileNamespace it switches to missionNamespace.
The sleep should be longer than 0.001 second. If it is shorter it doesn't happen. However I suspect this threshold is individual to the PC spec.