Fix assignment to free variable warning