Correct error in writing SHA1