Fixed search and replace error