end tag fix