Fixing a bug with the wallet based galleries.

The variables were in the wrong case for the pagination to function.