fix the sudden crash of starting server