fix edit product function