fixed a bug in button display in search