Fix end-of-submission-period issue.