Fix the dry-run issue
closes #4165
Merge pull request #4167 from permcody/dry_run_issue

Fix dry-run issue