Corrected step type generation