Fix output of the string, "undefined"