fix errent copy/replace