Fix reinit of all plugins when move to a new state