Fix null exception on server startup