Fix accidental global var on pages