Fix bug in search form