fix single sha512 bug