Fixing search and replace error.