Fixed a bug -- use 1 when productId is not specified