Fix file permission error causing comskip to quit live detection.  Fix array out of bounds error