console.log bug fix