Fix bug in client.php