fixed errors from the search and replace