fixing file copy