Fixed issue where client array was being created incorrectly.