Fix issue with vegas in main.js