fixes autoplay bug mentioned in comments in #191 fixes #191