fixed bug in a generic step.