Fix section navigation

Fix a couple of usability bugs in `n` and `p` navigation.