Fixed a bug in addingPossibleContexts