Fix submit method