Hello!
Surely the co-ordinates are for your benefit only, or possibly for a player map of some kind. I don't see an issue with using 'GoToLayout <name>' here instead of the complex variable method. Is there any real reason to keep in the layout direction and destination stuff?
If you still require help, a cut-down version in .capx format would be good. It could be many things but I would take a guess that it's the layouttag stuff causing an issue.