fixed file counting to merge failed jobs