fix several end tags in header