small fix to client.js slave mgmt logic