Fix bug and omit console.log