Fix method CheckStepKind

I made the changes as their orientation. Leaving loop body without changes. Thanks