fix if product is in array bug