Fix digest file creation