make sure indexed value is stringified for hashing