fixed errors with search and replace with prefixes