Fix plugin registration.