Fixed crash on dedicated servers, closes #21