Pretty much impossible to give you direct help on this without seeing the code, but here's my troubleshooting advice:
-Set the variable "I" (and other relevant variables) to visible on all pages, and click through to story to make sure it's doing what it's supposed to on all pages.
-If that doesn't help, check all the individual link/page scripts in reverse order to make sure they have the right info on them.
-I know that pagescript doesn't work on the page itself, but it should work for the links, so I doubt that's your issue. Still, to check this issue you can temporarily make the code happen on the previous page's link script.
-I'm not familiar with the script format you're using, I have no spaces in mine and the quotes seem out of place. Could this be your issue? Could just be a different format than I'm used to.