fix console.log error