fixes autoplay bug