Fix multiple-client bug.