simulator: Fix typo in simulator code.