Fixed another exception with multiple pages