fixed crash when map screen is shown on windows