fix inCart bug