Fixed var assignment bug.