Fix undefined wins bug
Fix undefined wins bug