Fixes search behavior