Fix broken template select