Global instances are updated after poping of context from stack