fixed createclient error when args are undefined