Fix auto-refill.

Off by one error in the rule generation, and the matching actually wants the item name, not an ID.