Fixed crash bug on server