Removing erroneous console.log