fixed erroneous file copy