fixed bug jumping to top bc of location.hash