Bug fix wrt 0 weight products.