[frontend] Fix submit.