Fix searching template