Fixed bug when calling the client lib