Fixed console.log error from extraneous i