fixed uploading empty files