fix search/replace error