Fix bug introduced by earlier commit

253154d67ab368a4d9539e9860282e8e80972f87 accessed the activated plugins in a wrong way.