fix crash on video end

actually thought that was a feature