Fix sim.c once more