fix bug on sidebar search