fixing logic stupidity in users search