Fixed a bug with play/pause button when no frames are created