Fix exception when switching between kiosk and stats pages.