hash generation fix