fix cart controller bug