Fixed bug where hc/rrhc would terminate pre-maturely in a state space with negative values