Fix bug when saving a product