Fixed server crashing on starting