Fix bug: wrong show state in empty popup menu