fix MAGN-821: n2c code crashes Dynamo