[FIX] Collection upload in synchronous mode may cause a fatal error.