Fixing printDiffs bug