Issued error on undeclared vars