Fix adding error to files.