fixes createClient execution