fix WMStatsWriter initilization