Fixed console.log issues