fixed bug for add/update products