fixed missing ] in template tag