remove bad operation in main.js