Submission files being duplicated every time I edit it