prevent autoplay induced loop