Fixed bug with duration not updating with new media