ensure context name is set before loading context