fix file editing errors