Java Selenium Switch To The Wrong Iframe When Closing

Java Selenium Switch To The Wrong Iframe When Closing