Fix bugs with incremental edit at edge of existing tag range