Fixed a bug in configurePlugins

...which prevented making multiple calls to the API.