Searching for "returned rows limit"
Where can i change this limit??
In Service Studio you can only configure the returned row count for the query test operation. This is done in the options page (Edit > Options).
What seems to have happened to you looks like a bug. If you can reproduce it please submit it using the submit feedback option in Service Studio (Help > Submit Feedback). Don't forget to attach your OML.
Until the problem is solved, one workaround may be to have two foreach elements, over that recordlist, in a sequence.
after you debug this logic, just revert to the original one (remove the dummy part), to avoid unneeded performance penalties.