fix empty menu problem