fixed server crash bug