Fixed an error in main.js