fix: make sure histogram boundaries are finite