Fixed issue with pagination when no prior pagination exists