find/replace error fixes