fix bugs in xweb servant