fix not making a deep copy of file

changes made to the original file's data (such as marking it in a
collection) would propogate to the copied file