Fix bug using function type menu as BaseMenu