fixed open and close tags wrong order