fix missing va_end()