Remove unneeded undef