Fix copy/replace bug