Fixed unlock file copy