Whoups! template instead of template[0].