Move closing tag to correct place.