fixes CoreFoundation collection usage