Fix nested search form bug