fix the example in createClient