Fix yank and replace error