fix server some bug