fixed server crashing on startup