bugfix for directory diffs