Fix scope issue with dutyPath call.