minor bug fix in hash