fix a bug in navbar search