Fix bug with the new SHA-1 implementation