fix the error of wrong product id or category id