fix group_by_store_purchase