Fix get target paging query