Fix crash on dedicated servers