Fixes window.location.hash change event