Fix authorization alogrithm at handshake