fix bug to update main.js