fix up some notices, not checking for existence of array keys.