I did that. The only mistake that I made was using the next flow structure which leads to that kind of problem