photocmp: and fix paging at the end too