fixed scrollSpy's behaviour; see also thesmart/jquery-scrollspy#5