fixed unassigned variable