Fixing a bug in compare.php