fix search n replace error