Fixed bug in client library