Fix in-page anchor links breaking on click