fix autoPlay and stop