Fixed a bug

Fixed a bug related to the way Gears checks pagination.