fix some server bug