fixed the client number decrementation