fix wrong dry run logic