Bug fixes and updating

Fixing a couple of bugs that made the plugin incompatible with new version of SKYCore