Fixed bug in AddContext and ContextOutcome