fixed pagination formatting