Fix submit form bug