Fix unintialized and undefined vars being treated as errors