Fix null pointer exception when the server launches