bugfix for autoplay