Fix Authorization function on client.