Fixed a bug in Search form