Fix metadata nested array