FIx little typo

ontemplate should be onetemplate
(cherry picked from commit 9070a1095eac91b87bc3d3c36f5e90680656e8c4)