Fixed use of console.warning