fixed small error in console.log snippet