fix get sha1 bug