Fix previewing of second page on genall.php