Remove extraneous </template>