Removed use of undeclared variable