fix end tag