repair mismatched <nav> element