fix autoplay bug