Fix 'this' usage
Use console.warn instead of console.log