fixbug on search