fix WindowsMetrics