template base element rendering fix