fixed issue with carousel not looping