fix undef warning