make sure autoPlay is always defined