Fixed a small bug in Client constructor