fixed sha1length bug