Additonal fixes for plugin examples.
Merge pull request #549 from spekary/bugfix-Plugins2

bugfix-PluginExamples2