fix a bug of XiahouShi