fix winning bug