fix sha1 generation