fix wrong file copy