Fixed winning bug