fix loading core context.