Fixed crash on dedicated servers