A SCAN on a recursive loop is done on a specific cursor. However, as it is recursive, it changes the position of the scan of any "in memory" recursions. So, the pointer of a specific "in process" SCAN is then affected by the next one. What is the proper way to resolve such an issue?