fix TextualContext unregistration issue