Fixes search form bug