console.log error fix