fixed error in main.js