fix scrollSpy
ref #3814