Fix hash-check