fix some bugs ablout on server