Fix jumping to anchor sometimes not working