fix bugs of 'restart' option of treefrog command.