minor bug fix to hash comparison