Fix bug with listPlugins introduced by last commit.