fix anchors when nav not visible