I'm guessing the switch at the end activates the second page, which is blank? This used to annoy me way back in the day, but the problem is that Set Move Route is kind of a background event command that runs parallel with other event commands. For example, if you had a Set Move Route followed by a message, the message window will pop up as soon as the move route starts. The Wait Until Move's Completion command right under the move route is what you can use here. It'll essentially make the event wait for the move to complete before the event continues processing, so the switch won't turn on until the move is finished. :)
I think there is some issue where if multiple move routes are happening together in different events, the command will wait until all of them finish, which isn't always ideal, but don't quote me on that. I'm not too familiar with that issue. If it becomes a problem, you can also just add in a wait command after the move route, using trial and error to figure out exactly how long the move route takes.