Fix a little error tag bug in Template Core