fixing randomHash
fix