Fix restoring stage window when primary instance was activated by a remote instance