bug fix for single file upload