Fix some editing errors