fixed how a empty menu is handled