Fix for when upgrading from old plugin versions for native plugin