fixed something in main.js