fix for sha1 hash