bug fixes: autoplay and media container emptying