Fix undefined variable notice.