fix some advace search issue