Stopped referencing undeclared value