Fix autoplay bug