Line 53: $vpage = ReadPage($vname); @$loaded[$vname]++; Should be: $vpage = ReadPage($vname, READPAGE_CURRENT); @$loaded[$vname]++; Since only the page text is accessed, it's inefficient to load the whole page array. BTW, is this the best way to mention minor bugs and inconveniences like this? eemeli