fixed error with console.log