Fixed rotation issues for Table of Contents.