Throwing exception when loading without having a context.