fixup permission plugin listeners.