fixed findreplace bug