Fix console.log errors