revert locals when routing backwards