fix bug that win 7 can not login and register