fix some bug for waito win32