fixed set num connections bug