Fix array initialization on MapPortableHook