Fixed issue with error in main.js