fix typo for templateLeft