fixed hist max and min in chainjobs