bugfix at_diff at_plothistocompare