Fixed search and replace problem.