Bugfix from last commit: the chapters in the menu was blocking the page from loading when the session was closed