Correct error in logic checking stride value.