Fixed a bug in search page