fix search and replace