fixed autoplay index issue