fix custom plugin