Reference subtemplates correctly