fix for empty menu
initialize count