fixed allocation issue with PlEnumerateImports