Corrected placement of template conditional