fix search flicker