Fix bug where menu would endup in weird phantom state.