Review fixes

Fix bug where we were were running the transition function for the first page for all pages that come afterward rather than the transition function for each page candidate.