fix submit script