fix crash on server