Fix activation of global plugins, fixes #3557