fix sha1 parsing