Fix undefined variable warning.