fixed search when bug