fix editing errors