Fix bug Product::getQuantity