fixed server crash issue