fix SHA512