fix console.log error catch