client: fix RangeError: Maximum call stack size exceeded

closes #147

Signed-off-by: Fedor Indutny <fedor@indutny.com>
1.25.3