fixed bug in client libarary sending wrong count of cards