fixed tiny bug when removing search