fix server engine some bug