fixed a bug in search input