fixed bug where isActive() returned nil on active pages