eliminated an undef warning in an error message