fixed bug in win state