Fixed a null problem

There was an error while the server started for the first time.