Fix bugs related to playing frames before they are loaded.