fix accessing the context