fix menuTray counting issue.