fixed UI bug where diffs would show up in bad places