fix bug where hash was incorrectly set after scrolling