fix autoplay issue