MainWindow: fix crash.
ManeWindow: fix states menu.