fixing a found bug to main-menu.js