Correcting undefined variable warning.