Fixed a problem where files were removed upon reset