Fixed a bug for html5 hash support comiited in prev commit