It seems, there is an implicit common ground for all power supplies. Otherwise this (the rightmost part of the design) should not work (but it does):
Is this intentional? Or is it another simulation artifact?
In reality I'd expect the circuit to only function when built like this (note the additional connection between 12V GND and 5V GND):