fix bug console.log