Fix mods like wecui not working after switching servers.
#364