fixed broken submenus exeting last compiled action