Fix the problem with the cart not been cleaning up