avoid undef value warnings.