Fixed a bug when modifying a product