[fix] clear array befor creating the next idList