Fix problem when returning void *