fix unassigned id variable in Core plugins command