Fixed server crash on startup