Fixes a bug preventing Client::setMode() to set modes