See if va_copy inside the functions fixes the issue