Fix offset when jumping to anchors

Fixes #583