Fix event issue for plugin editors