ensure correct hash is checked