fix errors of gaolarry's save & edit