fix bug for product editing