HDAA: fixed dupe salt detect logic. fix #951