Fixed console.log issue