fix for review comments(undefine -> undefined)