Fixing memory leak in configurePage:forIndex