Fix the repeat submitting problem