fixed $chain problem with carousel in minified mode