Fix "undefinedundefined is not defined"