Fix submit file delete bug.