BUG FIX: NPE at getActivePage()