Fixed a compilation error about an undeclared variable