fixed event bug
fixed windows build