fixed gallery editor issue where product_id was blank