Fixed the file update on rerun simulation