Simulation: fix due to MathLibs changes