fixed checkHash