Bug fix for pagination -- wasn't being set correctly on load