fix multiple occurrences of context