fix console.log(undefined)