fixed an array[] bug in HasStep.