fixed crash on changing client count