Fix getClient method.