addproduct: fixed type