fixed the double search thing