had the nested flag backwards