fixed a bug in the page-level sidebar menu implementation