corrected bug in task when no output and stats_only