fix some bug found after server opened