Fixed handling of access contexts.