Fixed getHash methods.