pagination fixed for Firefox 18