photocmp: fix paging