fix some server bugs