Finished fixing the deprecation errors in plugins.