Fixed console.error statement