fix WMStatsWriter initilization

fixes the bug initialing wmstats writer