fix looping over plugins