fixing bugs in offer persistence handler and when creating new item rules