fix main.js issue