fix double filename when submitting same file twice