Workaround Firefox location.hash bug