Fixed template tag closure