Fixed bug with regenerating skipped files