fixed pagination glitches