Fix page counting on listings