Fix nested output