fix a bug about duplicated entries