Fixed bad search and replace.