did you have a problem with it not shutting off before you did the work?
If you did not then you connected the key on wire to a always on connection.
Looks like the B terminal on the cdi should be to the the top fuse on the 3 fuse holder,,and that should go to the front fuse block which should be on a key on terminal.