Editing two trees simultaneously causes edits in wrong tree