Fixed bugs to do with versions and multiple plugins.