fixed server crash on startup