Fix frame switching after frame redirect/creation