bug fix for file_uploads