fix a bug in production mode
small fix to cart in production mode