Fixing GetPins native code array issue