Fix :: Fixes in changePluginState function argument

Parent reference is used in the class which does not extends with any other class