fixed async problem with search