fix unassigned output variable