Fix an assignment to undeclared variable