Bugfix for distributed cosim
TODO: bugfix for mixed coinit