fixes deprecation warnings in the plugin