Fix serch template error