bugfix for multiple file upload