Most obnoxious pagination bug ever