fix a bug of XuanFeng