The problem was solved modificating the query criteria for two dynaform distinct when the column STEP_POSITION is distinct.