Fixed bug with FireFox

In FireFox when you've got an anchor at the very top of your page. And you scroll to the that anchor then it caused an infinite loop.