fix bugs in catalog & cart/detail