Corretc error with reset of collections