Fix a bug where it was never regenerating a complete version of the file when maxchain was set.