Fix bug in hashChange service