fix error when indexing ImagePagepart