fixed location.hash bug