Blockade problem

I have one way out of my map, which is a village, and I have it so a guard is blocking the way. I am using varibles and switches so that when the time comes I can leave. But when I go back to the village, after leaving it, the guard is blocking the way again. I can still get him to move out of the way, but is there a way to stop him from moving back to his event spot?

Edit: I use able to solve it, I just added a new event where once I could leave nothing would be there.
you have to settle a switch who remove the guard
Try this from Shaz!

http://forums.rpgmakerweb.com/index.php?/topic/1853-remember-event-position/

Original thread: https://forums.rpgmakerweb.com/threads/blockade-problem.24827/