fixed wrong return value of binary api function in client, too