Fixed hash generation.