Fix bug in rerun command.