When on a page in a 2nd level section, after switching orientation, TOC was stuck with the section we're in unexpandable.