Fix the bug in get_client.