correct "undefind" to "undefined"