Fixed bug where hashChange event was fired too many times.