Fix case if template does not exist