fix server startup bug