Potential fixes for #88 and #89 - searchpage.php