Fix nested arrays