Sonar identifies MIDI devices by names. So it is confused by several of them with the same name.
The problem is know for years.
Theoretically midiox with loopbe should work. You have to re-route both devices throw that tools, so disable both Minis in Sonar MIDI configuration.