Fixed console.log errors