Fixed server crashing on startup.