fix desctruct array