fix the segment fault when the num of connections exceed the config num, and update config