Corrected initialisation of plugin
Replaced "self" references with "static" references, to make sure that late binding is used