Fix for menu in window mode.