remove console.log
fix invalid logic reference bug