Fix quantity based rule persistence when updating an existing rule