Fix possible issues with internal void*