Fix bug: serialize submit field after initializing