fix server-side crash bug