fix a bug of Duanzhi