fix void* conversion