fix: custom template not working with single-block element