fixed bugs of main-menu buttons.