Fix typo leading to unassigned variable