bug fix for hashCategory