Fix submit path bug