fixed a deletion of secondary files