Fix

This is a fix for a bug that occurs when one edits a tree with a sorter installed.