fixed bug that would cause crash on a dedicated server