Fix integer overflow np.product