(hopefully) finally fixed sha1 error