Fixed double ## in onHashChange. Added more logging.