SHA1 minor fixes