fixed misspelling of "undefined"