another attempt to avoid bad access exceptions when destroying collections