Fix a bug in search form