fix search behavior.