Fix bug in DryRun