fix issue with partial where array was used for hash