Jumbled Midi Channels After Macro

I created a macro involving zooming and soloing and after using it, the midi channels are all jumbled. Multiple instrument tracks are being triggered by my midi keyboard when only one instrument track is selected so I have to go through and disconnect and reconnect a whole heap of midi inputs.