Correct console.log error