fixes bug in context instantiation