Silly bug: calculate partition from key, not from value