fix behavior if page is top-level page.