Hash bug fix