Fixed bug with playback if no frames