Multiple file editing bug fix