fix undef value