Bugfix in client.js