fixed bug with sha1