fix hash type so it can be queried correctly

review: @fdansv 
FYI: @hkrishna