fixed thf end tag