Fix UI first sync problem on windows