fix infinite recursion in pane sorting