fix bug about editing row after searching.