Fixed the passage of variables to pages