fixed resubmission bug