Correctly nested the contexts