Fixed output of the string "undefined"