Fixed client_to_ws not looking at the correct workspace.

prev_client assumed that we wanted to look on the current workspace- that isn't true for finding a previous client on another workspace (as we do in client_to_ws).