Fix: avoid error when multiple files uploaded