fix  being undef