fixed sserver bugs