prevented infinite recursion when indexing page type