fixes to diff renderer