Fix bug in --sim and --debug options reported by Bob Lantz.