fix bug for submit repeat