Fix edit errors.