an amendment is the correction of some error or omission, or the curing of some defect, in judicial proceedings