Fixed a glitch with undeclared variables