Fixed EMR step state filtering.