Does your bike have a 4 pin cdi or a 5 pin ?
Does the Black wire without a terminal have a yellow stripe on it ?
Red goes to Black w/red stripe
Blue w/white goes to Blue,
Green to Green
White w/black stripe, and Green are for the kill switch
Both the Yellow and White wire's need the end's taped up, and then tape them both back to the stator loom. (lighting/battery charge coil)