fix sha512 hash