resolve compile error of server.