fixed pagination issue with Firefox