Fix typo with client.length