fixed hmac issue