Fix simulator script.