For some reason the current position element is not found when inside a code block resetting the scroll position at the top of the page.