fix list problem,iterator will not fail after erase