#582: fixed getHash method