Fixes incorrect scrollspy positioning.