fix find and replace error