Return Spell

Hi, I'm trying to create a return spell in my game but I'm having trouble getting it to work right. What I want to happen is when the character cast return they get choices from the towns they have been to before.

I have it set up when player enters a town they turn on a switch named after the town, I have a common event tied to the return spell, I have the names of the towns in a "Show choice" window than I have conditional branches for each of the town switches connected together but every time i test the spell when I pick any town other than the first one it doesn't teleport the player to the town I chose. The spell works perfectly when I choose the first town. I've been stuck on this for the past couple days. Any help will be greatly appreciated.
Can you show us the setup of the event?
I’m not sure if it will help, but I have 4 tutorials dealing with setting and returning to portals. I am providing a link to the one dealing with multiple portals In case it helps.

Good luck!

Original thread: https://forums.rpgmakerweb.com/threads/return-spell.157877/