Fixes server crash on startup