mthread fix a crash on login instance