fixed null error on server start