fix error in inherit product