fix for "strange things happen with file upload"