Fixed some server startup crashes