from __stdcall to __cdecl
bug fix