Fix plugin API issues.