fix bug in add_products.js