melvin herr's "reversion" fix for step editing so that everything is zero-based again