fix server compile error