cmp bug fixed and hash history modify