fix copy with replace #61