fix win event calculete, fix bug