get product by id - fixed error