Removed some unnecessary code

Failure to refer properly to private properties of the plugin object
required some extra code to be run.