Fix pre-defined functions to accept undefined inputs.