SelectFrame not working properly

I have this website that have a pop up page. I am still able to do the automation in the pop up page but after I close it, the automation is not working. I get this error: The selected frame has been removed. You may want to use another selectFrame before its removal
In my code, after I close the pop up page, I did add in the command | selectFrame | relative=top | but it does not seem to properly. Anyone know what went wrong?

Hi, do you have a test website for us?

add selectWindow tab=0 should solve the issue. Take me hours to find this solution.

UiVision got stuck in the frame when the frame closed itself.