Fix crash on servers