try to fix a winapi error