fix collection resetting.